Problem using Electron SDK 1.5.0
I have a working application using Electron SDK 1.1.1 Ema. When I try to use 1.5.0 I get link errors. Also, I could not find any makefiles for any of the examples in 1.5.0.
g++ -g -o ../bin/trccdriver -L../lib -L../../cbase/lib -L/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized ../obj/trccdriver.o ../obj/m2inputv2.o ../obj/trccXmit.o ../obj/emaArgs.o ../obj/ukvmap++.o ../obj/socket++.o ../obj/cbuf.o ../obj/lfcbase++.o ../obj/fvcbase++.o ../obj/cb++.o ../obj/dlog++.o ../obj/optfile.o ../obj/multiplex.o ../obj/momap.o ../obj/vmap++.o ../obj/drvsync++.o ../obj/misc.o -lema -lnsl -lpthread -ldl -lrt -lcbase -lbtree -llseq -lblkio -lc
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(AckMsgDecoder.cpp.o): In function `thomsonreuters::ema::access::AckMsgDecoder::setRsslData(unsigned char, unsigned char, RwfBuffer*, RsslDataDictionary const*, void*)':
AckMsgDecoder.cpp:(.text+0x8cb): undefined reference to `rsslDecodeMsg'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListDecoder.cpp.o): In function `thomsonreuters::ema::access::ElementListDecoder::setRsslData(unsigned char, unsigned char, RwfBuffer*, RsslDataDictionary const*, void*)':
ElementListDecoder.cpp:(.text+0x184): undefined reference to `rsslDecodeElementList'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListDecoder.cpp.o): In function `thomsonreuters::ema::access::ElementListDecoder::reset()':
ElementListDecoder.cpp:(.text+0x313): undefined reference to `rsslDecodeElementList'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListDecoder.cpp.o): In function `thomsonreuters::ema::access::ElementListDecoder::clone(thomsonreuters::ema::access::ElementListDecoder const&)':
ElementListDecoder.cpp:(.text+0x4c8): undefined reference to `rsslDecodeElementList'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListDecoder.cpp.o): In function `thomsonreuters::ema::access::ElementListDecoder::decodeViewList(RwfBuffer*, unsigned char&, thomsonreuters::ema::access::EmaVector<thomsonreuters::ema::access::EmaString>&)':
ElementListDecoder.cpp:(.text+0x70a): undefined reference to `rsslDecodeElementList'
ElementListDecoder.cpp:(.text+0x75a): undefined reference to `rsslDecodeElementEntry'
ElementListDecoder.cpp:(.text+0x873): undefined reference to `rsslDecodeArray'
ElementListDecoder.cpp:(.text+0x895): undefined reference to `rsslDecodeElementEntry'
ElementListDecoder.cpp:(.text+0x8f7): undefined reference to `rsslDecodeArrayEntry'
ElementListDecoder.cpp:(.text+0x907): undefined reference to `rsslDecodeBuffer'
ElementListDecoder.cpp:(.text+0x958): undefined reference to `rsslDecodeArrayEntry'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListDecoder.cpp.o): In function `thomsonreuters::ema::access::ElementListDecoder::getNextData()':
ElementListDecoder.cpp:(.text+0xa73): undefined reference to `rsslDecodeElementEntry'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListDecoder.cpp.o): In function `thomsonreuters::ema::access::ElementListDecoder::getNextData(thomsonreuters::ema::access::EmaVector<thomsonreuters::ema::access::EmaString> const&)':
ElementListDecoder.cpp:(.text+0xbd4): undefined reference to `rsslDecodeElementEntry'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListDecoder.cpp.o): In function `thomsonreuters::ema::access::ElementListDecoder::getNextData(thomsonreuters::ema::access::EmaString const&)':
ElementListDecoder.cpp:(.text+0xd94): undefined reference to `rsslDecodeElementEntry'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListEncoder.cpp.o): In function `thomsonreuters::ema::access::ElementListEncoder::endEncodingEntry() const':
ElementListEncoder.cpp:(.text+0x97): undefined reference to `rsslEncodeElementEntryComplete'
ElementListEncoder.cpp:(.text+0xc7): undefined reference to `rsslRetCodeToString'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListEncoder.cpp.o): In function `thomsonreuters::ema::access::ElementListEncoder::startEncodingEntry(thomsonreuters::ema::access::EmaString const&, unsigned char, char const*)':
ElementListEncoder.cpp:(.text+0x1b7): undefined reference to `rsslEncodeElementEntryInit'
ElementListEncoder.cpp:(.text+0x1f7): undefined reference to `rsslRetCodeToString'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListEncoder.cpp.o): In function `thomsonreuters::ema::access::ElementListEncoder::addEncodedEntry(thomsonreuters::ema::access::EmaString const&, unsigned char, char const*, RwfBuffer const&)':
ElementListEncoder.cpp:(.text+0x2d7): undefined reference to `rsslEncodeElementEntry'
ElementListEncoder.cpp:(.text+0x317): undefined reference to `rsslRetCodeToString'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListEncoder.cpp.o): In function `thomsonreuters::ema::access::ElementListEncoder::addPrimitiveEntry(thomsonreuters::ema::access::EmaString const&, unsigned char, char const*, void*)':
ElementListEncoder.cpp:(.text+0x408): undefined reference to `rsslEncodeElementEntry'
ElementListEncoder.cpp:(.text+0x448): undefined reference to `rsslRetCodeToString'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListEncoder.cpp.o): In function `thomsonreuters::ema::access::ElementListEncoder::initEncode()':
ElementListEncoder.cpp:(.text+0x4b3): undefined reference to `rsslEncodeElementListComplete'
ElementListEncoder.cpp:(.text+0x4d0): undefined reference to `rsslEncodeElementListInit'
ElementListEncoder.cpp:(.text+0x507): undefined reference to `rsslRetCodeToString'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListEncoder.cpp.o): In function `thomsonreuters::ema::access::ElementListEncoder::complete()':
ElementListEncoder.cpp:(.text+0x583): undefined reference to `rsslEncodeElementListComplete'
ElementListEncoder.cpp:(.text+0x5ff): undefined reference to `rsslRetCodeToString'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListEncoder.cpp.o): In function `thomsonreuters::ema::access::ElementListEncoder::addDateTime(thomsonreuters::ema::access::EmaString const&, unsigned short, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned short, unsigned short, unsigned short)':
ElementListEncoder.cpp:(.text+0x243d): undefined reference to `rsslDateTimeIsValid'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema.a(ElementListEncoder.cpp.o): In function `thomsonreuters::ema::access::ElementListEncoder::addTime(thomsonreuters::ema::access::EmaString const&, unsigned char, unsigned char, unsigned char, unsigned short, unsigned short, unsigned short)':
ElementListEncoder.cpp:(.text+0x26a5): undefined reference to `rsslTimeIsValid'
/home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Ema/Libs/RHEL6_64_GCC444/Optimized/libema
Best Answer
-
From the error messages, you need to link to the rssl libraries. Those functions, such as rsslDecodeElementList are defined in the librssl library.
It looks like that the application link to the ema static library (Optimized/libema.a) so you need to link to the -lrsslVA -lrssl libraries from the /home/donald/reuters/Elektron-SDK-1.5.0.L1.linux.rrg/Cpp-C/Eta/Libs/RHEL6_64_GCC444/Optimized/ directory.
Elektron-SDK-1.5.0.L1.linux.rrg is quite old. Please upgrade to the latest version Real-Time-SDK-2.0.2.L1.linux. You can download it from https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-cc/downloads.
0
Answers
-
Hi, I linked in the 2 other libraries and I was able to link successfully. I also downloaded RTSDK-2.0.2. I was able to compile and linked successfully after changing references of 'thomsonreuters' to 'refinitiv'.
I am now having a problem with execution. Whereas the 1.1.1 version ran successfully, I get the following errors with 1.5.0 and 2.0.2. Thanks in advance.
0 -
It is a certificate error. I am not sure how you got it.
I could replicate this error by creating a host alias in the /etc/hosts file and then using that alias in the example.
For example, I added the following entry to the /etc/hosts file.
18.136.130.7 rcc.test.com
Then, I created a connection to rcc.test.com and got this error.
Connection down, reconnecting. Channel fd=-1
Error text: </opt/refinitiv/Real-Time-SDK/Cpp-C/Eta/Impl/Transport/ripcsslutils.c:953> Error: 2002 Certificate validation error. No subject name match in host certificate's alternate name list.
Connection down, reconnecting. Channel fd=-1
Error text: </opt/refinitiv/Real-Time-SDK/Cpp-C/Eta/Impl/Transport/ripcsslutils.c:953> Error: 2002 Certificate validation error. No subject name match in host certificate's alternate name list.The error indicates that the certificate file retrieved from 18.136.130.7 doesn't have rcc.test.com in its host certificate's alternate name list.
0 -
HI.
Thank you for your response, but it does not help. I am using the same source, same xml file and running in the same environment. It works for 1.1.1, but not 1.5.0 or 2.0.2. See attached files.
EmaConfig.xml.txt
emaLog_444833.log-using-1.5.0.txt
emaLog_444969.log-using-1.1.1.txt
Regards.
0 -
Not sure if this file was uploaded.
0 -
From the configurations, you are using chp02-emea1.extranet.thomsonreuters.biz.
We have changed the domain name from thomsonreuters to refinitiv.
From my checking, the new hostnames of the contribution servers should be:
contrib01-emea1.platform.refinitiv.biz
contrib01-emea2.platform.refinitiv.bizIf these hostnames don't work, please contact your Refinitiv's account or sales team to provide the valid ones.
0 -
Hi,
Thank you. That was it. The new hostnames are :
contrib1-emea1.platform.refinitiv.biz and contrib2-emea1.platform.refinitiv.biz.
I am still not sure how the v1.1.1 version of the software worked with the old hostnames. In my opinion the error messages in the Ema log files were not very helpful in indicating the problem.
Thanks again.
0 -
The code may be changed. In version 1.1.1, the code may ignore this "host certificate's alternate name list" in the certificate. However, in the latest versions, the code verifies the host certificate's alternate name list.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛